<?php
require 'includes/autoloader.php';
require 'includes/exceptions.php';

session_start();

$url = isset($_GET['m'])? $_GET['m'] : '';

lib::setitem('controller', new controller($url));

$view = new view();
lib::getitem('controller')->render();
$content = $view->finish();

echo view::show('shell', array('body'=>$content));